package com.sen.common.widget.form;

import com.sen.common.widget.Attribute;
import com.sen.common.widget.Component;

/**
 * @author sen
 */
public class Button extends Component {

	public Button() {
		super("button");
	}
	
	public Button normalButton() {
		return type("button");
	}
	
	public Button resetButton() {
		return type("reset");
	}
	
	public Button submitButton() {
		return type("submit");
	}
	
	public Button type(String type) {
		this.attr(new Attribute().attr("type", type));
		return this;
	}
}
